package me.weijing.common.http;

import java.util.List;
import java.util.Map;

public interface HttpCallback {
	public boolean isCanceled();
	public void startProgress();
	/**
	 * 返回的请求数据
	 * @param data 为null表示请求失败
	 */
	public void interpret(byte[] data);
	public void interpret(byte[] data,Map<String,List<String>> responseHeaders);
	public void serverFail(int httpCode);
}
